<? global $cat, $cat1, $cat2, $lg, $products, $FullUrl; ?>

<div class="main">
  <div class="main-body">
    <div class="componentheading"> Sản Phẩm </div>
    <div class="shop-list-wrp">
      <div class="top-space"></div>
      <? if (count($products)>0) { ?>
      <? for ($i=0; $i<count($products); $i++) { 
	  		$pro = $products[$i];
			$img = GetImage($pro['img']);
			$link = GetProductLinkFull($pro, $lg);
			$pro_name = $pro["name_$lg"];
			$pro_desc = $pro["descs_$lg"];
			$pro_short = $pro["short_$lg"];
			$code = $pro["code"];
			$price = $pro["price"];
			$size = $pro["size"];
			$class_element = "list-item";
			$class_element .= ($i != 0 && $i%4 == 0)?" marR0": "";
	  ?>
      <div class="<?=$class_element?>">
        <div class="list-item-img"> <a href="<?=$link?>"> <img class="image" width="170" src="../../<?=$img?>" title="<?=$pro_name?>" alt="<?=$pro_name?>"> </a> </div>
        <ul class="list-item-content">
          <li class="product-name"> <a href="<?=$link?>"> <span>
            <?=$pro_name?>
            </span> </a> </li>
          <li class="product-price"> <span>
            <?=number_format($price)?>
            VNĐ </span> </li>
        </ul>
        <div class="clr"></div>
      </div>
      <?
      	if($i != 0 && $i%4 == 0)
		{			
	  ?>
      	<div class="clr"></div>
      <?
		}
	  ?>
      <?
		}
	  ?>
      <?
		}
	  ?>
    </div>
    <div class="clr"></div>
    <div class="navigation"> <span class="pagination"><span>&laquo;</span><span>Đầu</span><span>Trước</span><strong><span>1</span></strong><strong><a href="/tnguyen/thoi-trang-nam.html?start=20" title="2">2</a></strong><a href="/tnguyen/thoi-trang-nam.html?start=20" title="Sau">Sau</a><a href="/tnguyen/thoi-trang-nam.html?start=20" title="Cuối">Cuối</a><span>&raquo;</span></span></div>
  </div>
</div>
<?php Template::UserControlTPL('Sidebar'); ?>

<!--<div class="container_24 primary_content_wrap clearfix">
  <div id="content" class="grid_24">
    <div class="header-title">
      <h1>LIST PRODUCT</h1>
    </div>
    <div id="gallery" class="one_column">
      <ul class="portfolio">
      <? if (count($products)>0) { ?>
      <? for ($i=0; $i<count($products); $i++) { 
	  		$pro = $products[$i];
			$img = GetImage($pro['img']);
			$link = GetProductLinkFull($pro, $lg);
			$pro_name = $pro["name_$lg"];
			$pro_desc = $pro["descs_$lg"];
			$pro_short = $pro["short_$lg"];
			$code = $pro["code"];
			$price = $pro["price"];
			$size = $pro["size"];
	  ?>
        <li>
          <div class="clearfix"> <span class="image-border"><a class="image-wrap img-hover" href="<?=$FullUrl.'/'.$img?>" data-gal="prettyPhoto[gallery]" title="Name 1"><img style="display: block;" src="<?=$FullUrl.'/'.$img?>" class="attachment-portfolio-post-thumbnail-large wp-post-image" alt="slide-8" title="slide-8" height="236" width="452"><span class="mask"></span></a></span>
            <div class="folio-desc">
              <h3><a href="<?=$link?>"><?=$pro["name_$lg"];?></a></h3>
              <p class="excerpt"><?=$pro_short?></p>
              <p><a href="#" onclick="location.href='<?php echo $FullUrl; ?>/index.php?do=cart&act=add&id=<?=$pro['id']; ?>&lg=<?=$lg?>&sl=1'"><img src="<?=$FullUrl?>/images/button_buy_now.gif" alt="Buy Now" title=" Buy Now " height="20" width="63"></a></p>
              <a href="<?=$link?>" class="link">Read more</a> </div>
          </div>
        </li>
        <?
		}
	  ?>
         <?
		}
	  ?>
      </ul>
      <div class="clear"></div>
    </div>
    
  </div>
</div>--> 
